<?php
$config = [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'bootstrap' => ['log', 'queue'],
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
            'cachePath' => '@common/runtime/cache',
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => \yii\log\DbTarget::class,
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'queue' => [
            'class' => 'yii\queue\file\Queue',
            'as log' => 'yii\queue\LogBehavior',
            'path' =>  '@common/runtime/queue',
        ],
    ],
];

$urlManagers = require(Yii::getAlias('@common/config/url-managers.php'));
$config['components'] = array_merge($config['components'], $urlManagers);

return $config;
